Project

General

Profile

« Previous | Next » 

Revision 7bee6064

Added by Leszek Koltunski almost 3 years ago

Downloading updates: dialog progress.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogUpdateView.java
22 22
import android.app.Activity;
23 23
import android.view.View;
24 24
import android.widget.Button;
25
import android.widget.ImageView;
25 26
import android.widget.TextView;
26 27

  
27 28
import org.distorted.main.R;
......
68 69
    TextView description = mView.findViewById(R.id.updates_pane_description);
69 70
    description.setText(info.mDescription);
70 71

  
72
    ImageView image = mView.findViewById(R.id.updates_pane_image);
73
    image.setBackgroundResource(R.drawable.unknown_icon);
74

  
71 75
    return mView;
72 76
    }
73 77
  }
src/main/res/layout/dialog_updates.xml
11 11
        android:layout_width="match_parent"
12 12
        android:layout_height="wrap_content"
13 13
        android:gravity="center|fill_horizontal"
14
        android:layout_marginTop="0dp"
15 14
        android:background="@color/black"
15
        android:paddingLeft="10dp"
16
        android:paddingRight="10dp"
17
        android:paddingTop="10dp"
18
        android:paddingBottom="10dp"
16 19
        android:orientation="vertical">
17 20

  
18 21
        <TextView
src/main/res/layout/dialog_updates_pane.xml
3 3
	xmlns:android="http://schemas.android.com/apk/res/android"
4 4
	android:layout_width="match_parent"
5 5
	android:layout_height="wrap_content"
6
	android:orientation="horizontal"
7
	android:paddingTop="4dp"
8
	android:paddingBottom="4dp">
6
	android:layout_margin="10dp"
7
	android:background="@color/grey"
8
	android:orientation="horizontal">
9 9

  
10 10
   	<ImageView
11 11
   		android:id="@+id/updates_pane_image"
12 12
   		android:layout_width="wrap_content"
13 13
   		android:layout_height="wrap_content"
14
   		android:layout_margin="8dp"/>
14
   		android:layout_margin="10dp"/>
15 15

  
16 16
   	<LinearLayout
17
   		android:layout_width="0dp"
17
   		android:layout_width="match_parent"
18 18
 		android:layout_height="wrap_content"
19
 		android:layout_weight="1"
20 19
 		android:orientation="vertical"
21 20
 		android:layout_gravity="center_vertical">
22 21

  
......
35 34
    		android:layout_height="wrap_content"/>
36 35
    	<Button
37 36
             android:id="@+id/updates_pane_button"
38
             android:layout_width="wrap_content"
37
             android:layout_width="match_parent"
39 38
             android:layout_height="wrap_content"
40
             android:singleLine="true"
41
             android:gravity="end"/>
39
             android:backgroundTint="@color/black"
40
             android:layout_marginEnd="10dp"
41
             android:text="@string/install"
42
             android:gravity="center_vertical"/>
42 43
 	</LinearLayout>
43 44
</LinearLayout>
src/main/res/values-de/strings.xml
41 41
    <string name="about">Über die App</string>
42 42
    <string name="updates">Aktualisierungen</string>
43 43
    <string name="no_updates">Nicht gefunden</string>
44
    <string name="install">Installieren</string>
44 45
    <string name="abandon_solve">Gib auf</string>
45 46

  
46 47
    <string name="config_details">Einzelheiten</string>
src/main/res/values-es/strings.xml
41 41
    <string name="about">Acerca de</string>
42 42
    <string name="updates">Actualizaciones</string>
43 43
    <string name="no_updates">Extraviado</string>
44
    <string name="install">Instalar</string>
44 45
    <string name="abandon_solve">Abandonar</string>
45 46

  
46 47
    <string name="config_details">Detalles</string>
src/main/res/values-fr/strings.xml
41 41
    <string name="about">À propos de</string>
42 42
    <string name="updates">Mises à jour</string>
43 43
    <string name="no_updates">Pas trouvé</string>
44
    <string name="install">Installer</string>
44 45
    <string name="abandon_solve">Abandonner</string>
45 46

  
46 47
    <string name="config_details">Détails</string>
src/main/res/values-ja/strings.xml
41 41
    <string name="about">アプリについて</string>
42 42
    <string name="updates">更新</string>
43 43
    <string name="no_updates">見つかりません</string>
44
    <string name="install">インストール</string>
44 45
    <string name="abandon_solve">あきらめる</string>
45 46

  
46 47
    <string name="config_details">詳細</string>
src/main/res/values-ko/strings.xml
41 41
    <string name="about">정보</string>
42 42
    <string name="updates">업데이트</string>
43 43
    <string name="no_updates">업데이트가 없습니다</string>
44
    <string name="install">설치</string>
44 45
    <string name="abandon_solve">포기</string>
45 46

  
46 47
    <string name="config_details">세부</string>
src/main/res/values-pl/strings.xml
41 41
    <string name="about">O aplikacji</string>
42 42
    <string name="updates">Aktualizacje</string>
43 43
    <string name="no_updates">Nie znaleziono</string>
44
    <string name="install">Zainstaluj</string>
44 45
    <string name="abandon_solve">Zrezygnuj</string>
45 46

  
46 47
    <string name="config_details">O kostce</string>
src/main/res/values-ru/strings.xml
41 41
    <string name="about">О нас</string>
42 42
    <string name="updates">Обновления</string>
43 43
    <string name="no_updates">Не найдено</string>
44
    <string name="install">Установите</string>
44 45
    <string name="abandon_solve">Сдаться</string>
45 46

  
46 47
    <string name="config_details">Детали</string>
src/main/res/values-zh-rCN/strings.xml
41 41
    <string name="about">关于</string>
42 42
    <string name="updates">更新</string>
43 43
    <string name="no_updates">未找到更新</string>
44
    <string name="install">安装</string>
44 45
    <string name="abandon_solve">放弃</string>
45 46

  
46 47
    <string name="config_details">细节</string>
src/main/res/values-zh-rTW/strings.xml
41 41
    <string name="about">關於</string>
42 42
    <string name="updates">更新</string>
43 43
    <string name="no_updates">未找到更新</string>
44
    <string name="install">安裝</string>
44 45
    <string name="abandon_solve">放棄</string>
45 46

  
46 47
    <string name="config_details">細節</string>
src/main/res/values/strings.xml
42 42
    <string name="about">About</string>
43 43
    <string name="updates">Updates</string>
44 44
    <string name="no_updates">No update found</string>
45
    <string name="install">Install</string>
45 46

  
46 47
    <string name="credits1">Open Source app developed using the Distorted graphics library. Licensed under <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">GPL version 2</a> or - at your option - any later version.</string>
47 48
    <string name="credits2">Pretty Patterns by Walter Randelshofer. See <a href="http://www.randelshofer.ch">http://www.randelshofer.ch</a></string>

Also available in: Unified diff