Skip to content

Commit

Permalink
fix: permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zeseeit committed Mar 4, 2017
1 parent bde8431 commit 27debb2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 36 deletions.
File renamed without changes.
11 changes: 1 addition & 10 deletions app/src/main/java/any/audio/Adapters/ExploreTopDownAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static class ExploreItemRowViewHolder extends RecyclerView.ViewHolder {
public ExploreItemRowViewHolder(View itemView) {
super(itemView);

wrapper = (RelativeLayout) itemView.findViewById(R.id.sectionContainer);
///wrapper = (RelativeLayout) itemView.findViewById(R.id.sectionContainer);
sectionTitle = (TextView) itemView.findViewById(R.id.explore_item_header);
showAll = (TextView) itemView.findViewById(R.id.explore_item_show_all);
recyclerViewLeftToRight = (RecyclerView) itemView.findViewById(R.id.explore_left_to_right_recyclerView);
Expand All @@ -132,15 +132,6 @@ public ExploreItemRowViewHolder(View itemView) {
dividerItemDecoration.setDrawable(context.getResources().getDrawable(R.drawable.vertical_divider));
recyclerViewLeftToRight.addItemDecoration(dividerItemDecoration);

wrapper.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {

view.getBackground().setHotspot(motionEvent.getX(), motionEvent.getY());

return false;
}
});

showAll.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/explore_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="#ffffff"
android:background="#fafafa"
android:layout_height="match_parent">

<ProgressBar
Expand Down
40 changes: 15 additions & 25 deletions app/src/main/res/layout/explore_item_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,48 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:paddingTop="8dp"
android:paddingRight="4dp"
android:paddingLeft="4dp"
android:paddingLeft="12dp"
android:paddingBottom="4dp"
android:background="#ffffff"
android:background="#fafafa"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<RelativeLayout
android:clickable="true"
android:background="?android:attr/selectableItemBackground"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:id="@+id/sectionContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/explore_item_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HOT"
android:layout_marginLeft="4dp"
android:textAllCaps="true"
android:textColor="@color/AnyAudioBlack"
android:textSize="18sp" />

<FrameLayout
android:id="@+id/tip"
android:layout_marginTop="4dp"
android:layout_marginLeft="4dp"
android:layout_below="@+id/explore_item_header"
android:layout_width="32dp"
android:layout_height="3dp"
android:background="@drawable/explore_text_under_tip" />

<android.support.v7.widget.RecyclerView
android:layout_below="@+id/tip"
android:id="@+id/explore_left_to_right_recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>

<TextView
android:layout_alignParentEnd="true"
android:textColor="@color/AnyAudioPrimaryColor"
android:text="ShowAll"
android:textStyle="bold"
android:layout_centerVertical="true"
android:id="@+id/explore_item_show_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</RelativeLayout>

<android.support.v7.widget.RecyclerView
android:id="@+id/explore_left_to_right_recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/sectionContainer"
android:layout_marginTop="8dp"
android:layout_marginLeft="16dp"
android:layout_centerHorizontal="true" />
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/explore_item_header"
android:layout_alignBottom="@+id/explore_item_header"
android:layout_alignParentEnd="true" />


</RelativeLayout>

0 comments on commit 27debb2

Please sign in to comment.