/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | DividerItemDecoration.java | 35 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument 36 int left = parent.getLeft(); in onDraw() 37 int right = parent.getRight(); in onDraw() 39 int childCount = parent.getChildCount(); in onDraw() 42 View child = parent.getChildAt(i); in onDraw()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | DividerItemDecoration.java | 35 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument 36 int left = parent.getLeft(); in onDraw() 37 int right = parent.getRight(); in onDraw() 39 int childCount = parent.getChildCount(); in onDraw() 42 View child = parent.getChildAt(i); in onDraw()
|
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | ScalingScrollLayoutCallback.java | 29 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument 32 float centerOffset = (child.getHeight() / 2.0f) / parent.getHeight(); in onLayoutFinished() 33 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
|
D | ProgressBarPreference.java | 36 protected View onCreateView(ViewGroup parent) { in onCreateView() argument 37 super.onCreateView(parent); in onCreateView() 40 return inflater.inflate(R.layout.progress_bar_with_text_layout, parent, false); in onCreateView()
|
D | LongListRecyclerViewAdapter.java | 58 public Holder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 63 view = mInflater.inflate(R.layout.title_layout, parent, false); in onCreateViewHolder() 69 view = mInflater.inflate(R.layout.long_list_switch_widget_layout, parent, false); in onCreateViewHolder() 100 view = mInflater.inflate(R.layout.header_footer_layout, parent, false); in onCreateViewHolder() 103 view = mInflater.inflate(R.layout.progress_bar_layout, parent, false); in onCreateViewHolder() 106 view = mInflater.inflate(R.layout.shifted_app_item_layout, parent, false); in onCreateViewHolder() 109 view = mInflater.inflate(R.layout.shifted_app_item_layout, parent, false); in onCreateViewHolder()
|
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | ScalingScrollLayoutCallback.java | 28 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument 31 float centerOffset = (child.getHeight() / 2.0f) / parent.getHeight(); in onLayoutFinished() 32 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
|
D | ProgressBarPreference.java | 36 protected View onCreateView(ViewGroup parent) { in onCreateView() argument 37 super.onCreateView(parent); in onCreateView() 40 return inflater.inflate(R.layout.progress_bar_with_text_layout, parent, false); in onCreateView()
|
D | LongListRecyclerViewAdapter.java | 57 public Holder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 62 view = mInflater.inflate(R.layout.title_layout, parent, false); in onCreateViewHolder() 68 view = mInflater.inflate(R.layout.long_list_switch_widget_layout, parent, false); in onCreateViewHolder() 99 view = mInflater.inflate(R.layout.header_footer_layout, parent, false); in onCreateViewHolder() 102 view = mInflater.inflate(R.layout.progress_bar_layout, parent, false); in onCreateViewHolder() 105 view = mInflater.inflate(R.layout.shifted_app_item_layout, parent, false); in onCreateViewHolder() 108 view = mInflater.inflate(R.layout.shifted_app_item_layout, parent, false); in onCreateViewHolder()
|
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
D | ScalingScrollLayoutCallback.java | 40 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument 43 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in onLayoutFinished() 44 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
|
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/main/ |
D | ContactAdapter.kt | 42 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ContactViewHolder { in onCreateViewHolder() 43 val holder = ContactViewHolder(parent) in onCreateViewHolder() 67 class ContactViewHolder(parent: ViewGroup) : RecyclerView.ViewHolder( 68 LayoutInflater.from(parent.context).inflate(R.layout.chat_item, parent, false)
|
/developers/build/prebuilts/gradle/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
D | ScalingScrollLayoutCallback.java | 39 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument 42 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in onLayoutFinished() 43 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
|
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
D | AlarmAdapter.java | 63 public AlarmViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 64 View v = LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 65 .inflate(R.layout.alarm_row, parent, false); in onCreateViewHolder() 175 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDrawOver() argument 176 int left = parent.getPaddingLeft(); in onDrawOver() 177 int right = parent.getWidth() - parent.getPaddingRight(); in onDrawOver() 178 for (int i = 0; i < parent.getChildCount(); i++) { in onDrawOver() 179 View child = parent.getChildAt(i); in onDrawOver()
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
D | AlarmAdapter.java | 63 public AlarmViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 64 View v = LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 65 .inflate(R.layout.alarm_row, parent, false); in onCreateViewHolder() 175 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDrawOver() argument 176 int left = parent.getPaddingLeft(); in onDrawOver() 177 int right = parent.getWidth() - parent.getPaddingRight(); in onDrawOver() 178 for (int i = 0; i < parent.getChildCount(); i++) { in onDrawOver() 179 View child = parent.getChildAt(i); in onDrawOver()
|
/developers/build/prebuilts/gradle/WifiRttScan/Application/src/main/java/com/example/android/wifirttscan/ |
D | MyAdapter.java | 83 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 90 LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 91 .inflate(R.layout.recycler_row_header, parent, false)); in onCreateViewHolder() 96 LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 97 .inflate(R.layout.recycler_row_item, parent, false)); in onCreateViewHolder()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
D | CardPresenter.java | 43 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument 46 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background); in onCreateViewHolder() 47 sSelectedBackgroundColor = parent.getResources().getColor(R.color.selected_background); in onCreateViewHolder() 48 mDefaultCardImage = parent.getResources().getDrawable(R.drawable.movie); in onCreateViewHolder() 50 ImageCardView cardView = new ImageCardView(parent.getContext()) { in onCreateViewHolder()
|
/developers/samples/android/connectivity/wifirtt/WifiRttScan/Application/src/main/java/com/example/android/wifirttscan/ |
D | MyAdapter.java | 83 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 90 LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 91 .inflate(R.layout.recycler_row_header, parent, false)); in onCreateViewHolder() 96 LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 97 .inflate(R.layout.recycler_row_item, parent, false)); in onCreateViewHolder()
|
/developers/build/prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.kt | 45 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = in <lambda>() 46 ViewHolder(LayoutInflater.from(parent.context) in <lambda>() 47 .inflate(R.layout.drawer_list_item, parent, false) in <lambda>()
|
/developers/samples/android/ui/views/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.kt | 45 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = in <lambda>() 46 ViewHolder(LayoutInflater.from(parent.context) in <lambda>() 47 .inflate(R.layout.drawer_list_item, parent, false) in <lambda>()
|
/developers/samples/android/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 59 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 60 LayoutInflater vi = LayoutInflater.from(parent.getContext()); in onCreateViewHolder() 61 View v = vi.inflate(R.layout.drawer_list_item, parent, false); in onCreateViewHolder()
|
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 59 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 60 LayoutInflater vi = LayoutInflater.from(parent.getContext()); in onCreateViewHolder() 61 View v = vi.inflate(R.layout.drawer_list_item, parent, false); in onCreateViewHolder()
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
D | ImageAdapter.kt | 41 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ImageViewHolder { in onCreateViewHolder() 42 val view = LayoutInflater.from(parent.context) in onCreateViewHolder() 43 .inflate(R.layout.viewholder_image, parent, false) in onCreateViewHolder()
|
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
D | ImageAdapter.kt | 41 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ImageViewHolder { in onCreateViewHolder() 42 val view = LayoutInflater.from(parent.context) in onCreateViewHolder() 43 .inflate(R.layout.viewholder_image, parent, false) in onCreateViewHolder()
|
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/ |
D | MessageAdapter.kt | 66 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MessageViewHolder { in onCreateViewHolder() 67 val holder = MessageViewHolder(parent) in onCreateViewHolder() 128 class MessageViewHolder(parent: ViewGroup) : RecyclerView.ViewHolder( 129 LayoutInflater.from(parent.context).inflate(R.layout.message_item, parent, false)
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
D | ImageAdapter.java | 53 public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 54 View view = LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 55 .inflate(R.layout.viewholder_image, parent, false); in onCreateViewHolder()
|
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
D | ImageAdapter.java | 53 public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 54 View view = LayoutInflater.from(parent.getContext()) in onCreateViewHolder() 55 .inflate(R.layout.viewholder_image, parent, false); in onCreateViewHolder()
|