reduce arrow drawable diameter

This commit is contained in:
Andrew Dolgov 2015-02-12 19:49:15 +03:00
parent 6997496449
commit d6ba1550e9
5 changed files with 24 additions and 5 deletions

View File

@ -53,6 +53,7 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
private ArticleImagesPagerAdapter m_adapter; private ArticleImagesPagerAdapter m_adapter;
private String m_content; private String m_content;
private GestureDetector m_detector; private GestureDetector m_detector;
private ProgressBar m_progress;
@Override @Override
public boolean onSingleTapConfirmed(MotionEvent motionEvent) { public boolean onSingleTapConfirmed(MotionEvent motionEvent) {
@ -224,7 +225,7 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
m_adapter.notifyDataSetChanged(); m_adapter.notifyDataSetChanged();
} }
setProgress(Integer.valueOf(checkedUrl[1])); m_progress.setProgress(Integer.valueOf(checkedUrl[1]));
} else { } else {
cancel(true); cancel(true);
} }
@ -232,7 +233,7 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
@Override @Override
protected void onPostExecute(Integer result) { protected void onPostExecute(Integer result) {
// m_progress.setVisibility(View.GONE);
} }
} }
@ -249,6 +250,8 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
setContentView(R.layout.article_images_pager); setContentView(R.layout.article_images_pager);
m_progress = (ProgressBar) findViewById(R.id.article_images_progress);
getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().hide(); getSupportActionBar().hide();
@ -287,6 +290,8 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
} }
if (m_urls.size() > 1) { if (m_urls.size() > 1) {
m_progress.setProgress(0);
m_progress.setMax(m_urls.size());
m_checkedUrls = new ArrayList<String>(); m_checkedUrls = new ArrayList<String>();
ArrayList<String> tmp = new ArrayList<String>(m_urls); ArrayList<String> tmp = new ArrayList<String>(m_urls);
@ -298,6 +303,7 @@ public class ArticleImagesPagerActivity extends CommonActivity implements Gestur
ict.execute(tmp); ict.execute(tmp);
} else { } else {
m_checkedUrls = new ArrayList<String>(m_urls); m_checkedUrls = new ArrayList<String>(m_urls);
m_progress.setVisibility(View.GONE);
} }
setTitle(m_title); setTitle(m_title);

View File

@ -16,7 +16,7 @@ public class ArrowRight extends View {
private Path arrowPath; private Path arrowPath;
private int arrowColor = 0xFF888888; private int arrowColor = 0xFF888888;
private float density; private float density;
private int diameter = 5, diameter_calc, radius_calc; private int diameter = 2, diameter_calc, radius_calc;
public ArrowRight(Context context, AttributeSet attrs, int defStyleAttr) { public ArrowRight(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);

View File

@ -16,4 +16,17 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" /> android:layout_height="fill_parent" />
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/article_images_progress"
android:progress="0"
android:indeterminate="false"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout> </RelativeLayout>

View File

@ -96,7 +96,7 @@
android:visibility="visible" /> android:visibility="visible" />
<org.fox.ttrss.util.ArrowRight <org.fox.ttrss.util.ArrowRight
android:layout_marginRight="4dp" android:layout_marginRight="16dp"
android:id="@+id/flavorImageArrow" android:id="@+id/flavorImageArrow"
android:layout_width="64dp" android:layout_width="64dp"
android:layout_gravity="center|right" android:layout_gravity="center|right"

View File

@ -97,7 +97,7 @@
android:visibility="visible" /> android:visibility="visible" />
<org.fox.ttrss.util.ArrowRight <org.fox.ttrss.util.ArrowRight
android:layout_marginRight="4dp" android:layout_marginRight="16dp"
android:id="@+id/flavorImageArrow" android:id="@+id/flavorImageArrow"
android:layout_width="64dp" android:layout_width="64dp"
android:layout_gravity="center|right" android:layout_gravity="center|right"