15,895,192 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Maybeok (Top 23 by date)
Maybeok
2-May-18 8:59am
View
Dear David Crow.Thanks for your comments. please ignore if you do not have time . And let helping minded people can review my code and can help them ..
Maybeok
14-Apr-18 6:29am
View
no without button i need to achieve
Maybeok
14-Apr-18 6:22am
View
wseng. onclick can be removable. Suggest me without onclick linearlayout.
Maybeok
14-Apr-18 6:13am
View
Deleted
Have got two requirements. 1. Search the course with title from edittext and show it in spinner. 2. I would like to click the spinner and see spinner inside contents.Note that requirements 1 is working fine.
Maybeok
14-Apr-18 6:10am
View
Actually i am having two requirement here. 1. searching the course with title from edittext which will show in spinner. 2. i should be able to click the spinner to see the inside contents. Please note that requirement 1 is working fine.but looking for requirement 2 solution.
Maybeok
14-Apr-18 5:49am
View
refering to CourseSearchActivity
Maybeok
14-Apr-18 2:50am
View
wseng finally got it.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="viewOfferingDetails"
android:clickable="true"
android:id="@+id/offeringListLinearLayout">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="TextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:id="@+id/offeringListFullNameTextView" />
Maybeok
14-Apr-18 2:50am
View
It is in offering_list_item.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="viewOfferingDetails"
android:clickable="true"
android:id="@+id/offeringListLinearLayout">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="TextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:id="@+id/offeringListFullNameTextView" />
Maybeok
12-Apr-18 3:59am
View
hi its already pasted in my question.
Maybeok
12-Apr-18 3:50am
View
that is coming from offering
Maybeok
12-Apr-18 3:06am
View
no i have not changed anything
Maybeok
12-Apr-18 2:43am
View
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_course_search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="edu.orangecoastcollege.cs273.occcoursefinder.CourseSearchActivity">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:text="Filter By Instructor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView"
/>
<Spinner
android:id="@+id/instructorSpinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:text="Filter By Course Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView2"
/>
<EditText
android:id="@+id/courseTitleEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<button
android:text="@string/reset_button_text"
="" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:id="@+id/resetButton" android:onclick="reset">
<ListView
android:id="@+id/offeringsListView"
android:layout_width="match_parent"
android:layout_height="18dp">
<Spinner
android:id="@+id/ok"
android:layout_width="341dp"
android:layout_height="93dp"
android:layout_weight="1" />
Maybeok
11-Apr-18 15:52pm
View
Wseng thanks for your information. can you guide me with with spinner inside public void viewOfferingDetails(View view)
Maybeok
11-Apr-18 8:27am
View
Hello Richard,All are related each other.Exampl: Main file is CourseSearchActivity , db file is DBHelper . search file is OfferingListAdapter. sub files are course,offering
Maybeok
4-Apr-18 14:40pm
View
hello android experts need your kind attention...
Maybeok
4-Apr-18 13:52pm
View
same no reaction... public void afterTextChanged(Editable s) {
call();
}
Maybeok
4-Apr-18 13:37pm
View
no error as such while entering the text in edittext i mean no reaction ..
Maybeok
4-Apr-18 13:34pm
View
hello wseng the link answer already avail in my details but what i am looking is without clicking an button the edittext data should show in spinner
Maybeok
4-Apr-18 13:21pm
View
hi i am not expert in textwatcher. pls advise with your expertise
Maybeok
4-Apr-18 13:16pm
View
i tried but application stop working. do you have any sample code would suffice to proceed further..
Maybeok
4-Apr-18 13:10pm
View
edittext is used for searching the data from database...
Maybeok
21-Mar-18 10:16am
View
This is what i have tried. With other code i am able to change the textview based on spinner selection. And now i am trying in reverse method . where spinner change based on textview change. Will your code can help ?? textview is result1 and spinner is s1 result1.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
{
}
}
@Override
public void afterTextChanged(Editable s) {
try
{
int nPosition = Integer.parseInt(s.toString());
if (nPosition >= 1 && nPosition <= 12)
s1.setSelection(nPosition - 1);
}
catch(NumberFormatException nfe)
{
}
}
});
Maybeok
20-Mar-18 13:50pm
View
David thanks for your different direction. I tried with following with success. "bResult.setText( spinner1csr.getString( spinner1csr.getColumnIndex(DatabaseHandler.KEY_ID1) ) );" But challenge here is i am unable to change spinner value based on textview changing.. what could be your suggestion ???
Show More