Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2026-03-19 16:21:05 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
926a7c92733c0ecdf6da5cafd21706bbb957f31f
926a7c92
1 parent
229eed24
minor fixes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/HomeActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/HomeActivity.java
View file @
926a7c9
...
...
@@ -31,6 +31,8 @@ import com.google.common.util.concurrent.ListenableFuture;
import
com.google.common.util.concurrent.MoreExecutors
;
import
com.google.common.util.concurrent.SettableFuture
;
import
org.json.JSONArray
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
...
...
@@ -591,7 +593,7 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup
llOptionsContainer
.
removeAllViews
();
org
.
json
.
JSONArray
options
=
question
.
getOptions
();
JSONArray
options
=
question
.
getOptions
();
String
type
=
question
.
getType
();
List
<
Integer
>
selectedPositions
=
new
ArrayList
<>();
...
...
@@ -601,7 +603,8 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup
View
dropdownHeader
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
item_questionnaire_option
,
llOptionsContainer
,
false
);
LinearLayout
llDropdownContainer
=
dropdownHeader
.
findViewById
(
R
.
id
.
ll_option_container
);
TextView
tvDropdownTitle
=
dropdownHeader
.
findViewById
(
R
.
id
.
tv_option_title
);
tvDropdownTitle
.
setText
(
getString
(
R
.
string
.
demo_region_title
));
String
optionHeaderText
=
options
.
optString
(
0
);
tvDropdownTitle
.
setText
(
optionHeaderText
);
WarpUtils
.
renderCustomFont
(
this
,
R
.
font
.
ping_lcg_regular
,
tvDropdownTitle
);
llDropdownContainer
.
setBackground
(
AppCompatResources
.
getDrawable
(
this
,
R
.
drawable
.
shape_questionnaire_option_unselected
));
tvDropdownTitle
.
setTextColor
(
getColor
(
R
.
color
.
custom_black2
));
...
...
@@ -611,15 +614,13 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup
llDropdownList
.
setVisibility
(
View
.
GONE
);
if
(
options
!=
null
)
{
for
(
int
i
=
0
;
i
<
options
.
length
();
i
++)
{
for
(
int
i
=
1
;
i
<
options
.
length
();
i
++)
{
final
int
position
=
i
;
String
optionText
=
options
.
optString
(
i
);
View
optionView
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
item_questionnaire_option
,
llDropdownList
,
false
);
LinearLayout
llOptionContainer
=
optionView
.
findViewById
(
R
.
id
.
ll_option_container
);
TextView
tvOptionTitle
=
optionView
.
findViewById
(
R
.
id
.
tv_option_title
);
tvOptionTitle
.
setText
(
optionText
);
WarpUtils
.
renderCustomFont
(
this
,
R
.
font
.
ping_lcg_regular
,
tvOptionTitle
);
llOptionContainer
.
setBackground
(
AppCompatResources
.
getDrawable
(
this
,
R
.
drawable
.
shape_questionnaire_option_unselected
));
tvOptionTitle
.
setTextColor
(
getColor
(
R
.
color
.
custom_grey3
));
optionView
.
setOnClickListener
(
v
->
{
...
...
Please
register
or
login
to post a comment