Browse Source

Added getTitleView() and getContentView(), removed getTitleFrame()

Aidan Follestad 10 years ago
parent
commit
67b941c1de

+ 16 - 18
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -1536,13 +1536,6 @@ public class MaterialDialog extends DialogBase implements
         }
     }
 
-    /**
-     * Retrieves the frame view containing the title and icon. You can manually change visibility and retrieve children.
-     */
-    public final View getTitleFrame() {
-        return titleFrame;
-    }
-
     /**
      * Retrieves the view representing the dialog as a whole. Be careful with this.
      */
@@ -1550,11 +1543,27 @@ public class MaterialDialog extends DialogBase implements
         return view;
     }
 
+    @Nullable
+    @Override
+    public final ListView getListView() {
+        return listView;
+    }
+
+    public final TextView getTitleView() {
+        return title;
+    }
+
+    @Nullable
+    public final TextView getContentView() {
+        return content;
+    }
+
     /**
      * Retrieves the custom view that was inflated or set to the MaterialDialog during building.
      *
      * @return The custom view that was passed into the Builder.
      */
+    @Nullable
     public final View getCustomView() {
         return mBuilder.customView;
     }
@@ -1717,17 +1726,6 @@ public class MaterialDialog extends DialogBase implements
         return !isShowing();
     }
 
-    /**
-     * Use this to customize any list-specific logic for this dialog (OnItemClickListener, OnLongItemClickListener, etc.)
-     *
-     * @return The ListView instance used by this dialog, or null if not using a list.
-     */
-    @Nullable
-    @Override
-    public final ListView getListView() {
-        return listView;
-    }
-
     /**
      * Convenience method for getting the currently selected index of a single choice list.
      *